package com.wanghaoran.service;

import com.github.pagehelper.PageInfo;
import com.wanghaoran.dto.*;
import com.wanghaoran.entity.Dept;
import com.wanghaoran.entity.Role;
import com.wanghaoran.excel.DeptExcel;
import com.wanghaoran.excel.RoleExcel;
import com.wanghaoran.vo.DeptVO;
import com.wanghaoran.vo.RoleVO;

import java.util.List;

/**
 * @author wanghaoran
 */

public interface RoleService {

    int insert(RoleInsertDTO dto);

    Role select(Long id);

    List<RoleVO> list();

    PageInfo<Role> page(RolePageDTO dto);

    int update(RoleUpdateDTO dto);

    int delete(Long id);

    int deleteBatch(List<Long> ids);

    List<RoleExcel> getExcelData();

    List<Role> listByEmpId(Long empId);

    int updateByEmpId(Long empId, List<Long> roleIds);
}
